package com.ruoyi.essay.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 essay
 * 
 * @author ruoyi
 * @date 2025-03-01
 */
public class Essay extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章id */
    private Long essayId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 字体大小 */
    @Excel(name = "字体大小")
    private Long fontSize;

    /** 正文缩进 */
    @Excel(name = "正文缩进")
    private Long indentation;

    /** 标题大小 */
    @Excel(name = "标题大小")
    private Long headingSize;

    /** 行间距 */
    @Excel(name = "行间距")
    private float lineHeight;

    public void setEssayId(Long essayId) 
    {
        this.essayId = essayId;
    }

    public Long getEssayId() 
    {
        return essayId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setFontSize(Long fontSize) 
    {
        this.fontSize = fontSize;
    }

    public Long getFontSize() 
    {
        return fontSize;
    }
    public void setIndentation(Long indentation) 
    {
        this.indentation = indentation;
    }

    public Long getIndentation() 
    {
        return indentation;
    }
    public void setHeadingSize(Long headingSize) 
    {
        this.headingSize = headingSize;
    }

    public Long getHeadingSize() 
    {
        return headingSize;
    }
    public float getLineHeight() {
        return lineHeight;
    }

    public void setLineHeight(float lineHeight) {
        this.lineHeight = lineHeight;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("essayId", getEssayId())
            .append("userId", getUserId())
            .append("content", getContent())
            .append("title", getTitle())
            .append("fontSize", getFontSize())
            .append("indentation", getIndentation())
            .append("headingSize", getHeadingSize())
            .append("lineHeight", getLineHeight())
            .toString();
    }


}
